<?php

function dblogin(){
   /*set up DB connections*/

   $host = 'TYPICALLY_LOCALHOST';
   $user = 'DATABASE_USER';
   $password = 'DATABASE_PASSWORD';    
   $connection = mysql_connect($host,$user,$password);
   $db = mysql_select_db('DATABASE_NAME',$connection);
}

?>